#!/usr/bin/env bash

mkdir dist
rm -rf dist/*

mvn clean package -DskipTests -s doc/settings_aliyun.xml

mkdir dist/lib
mkdir dist/config

cp -r target/lib dist
cp target/lsmp-1.0.jar  dist/lib
cp run.sh dist

cd dist
tar cvzf lsmp.tar.gz .